﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WorkFormShow1.aspx.cs" Inherits="Flow_Info_WorkFormShow" %>

<%@ Import Namespace="TarreOA.TarreOAModels" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
    <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>
    <style type="text/css">
        <!--
        html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
        scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
        -->
    </style>
</head>
<body>
<br />
    <table width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0"
        style="border-collapse: collapse;">
        <tr bgcolor="#b1d5ef">
            <td align="center" height="30">
                表单详情
            </td>
        </tr>
        <tr>
            <td>
                <% if (form_view.IndexOf("L") != -1)
                   { %>
                <% if (form_model != null && !"".Equals(form_model))
                   { %>
                <%=form_model%>
                <% }
                   else
                   { %>
                <script type="text/javascript">
                    alert("信息加载异常，请重试！");
                </script>
                <% } %>
                <br />
                <br />
                <% } %>
            </td>
        </tr>
    </table>
    <% if (form_view.IndexOf("I") != -1)
       { %>
    <table width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0"
        style="border-collapse: collapse;">
        <tr bgcolor="#b1d5ef">
            <td align="center" height="30">
                <% if (list_feed != null)
                   { %>
                <b>签办反馈意见</b>
                <% }
                   else
                   { %>
                <b>无任何反馈意见</b>
                <% } %>
            </td>
        </tr>
        <% if (list_feed != null)
           { %>
        <% foreach (Flow_WorkFeedBack fwfb in list_feed)
           { %>
        <tr>
            <td>
                <font style="font-size: 12px"><font color="red">
                    <%=fwfb.FeedBack_userName%>
                </font>发表于:<%=fwfb.FeedBack_time.ToString()%><br />
                    <%=fwfb.FeedBack_content%>
                </font>
            </td>
        </tr>
        <% }
           }%>
    </table>
    <br />
    <br />
    <% } %>
    <% if (form_view.IndexOf("N") != -1)
       { %>
    <% if (list != null)
       { %>
    <table width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0"
        style="border-collapse: collapse;">
        <tr bgcolor="#b1d5ef">
            <td align="center" colspan="3">
                <b>流程开始</b>
            </td>
        </tr>
        <% foreach (Flow_WorkProcess fwp in left_list)
           { %>
        <tr>
            <td align="center" width="15%">
                <font style="font-size: 12px">第<font color="red"><b><%=fwp.Step_id%></b></font>步:</font>
            </td>
            <td width="25%">
                <font style="font-size: 12px">&nbsp;<%=fwp.Step_name%>
                </font>
            </td>
            <td width="60%">
                <font style="font-size: 12px">
                    <% foreach (Flow_WorkProcess fw in list)
                       { %>
                    <% if (fw.Step_id == fwp.Step_id)
                       { %>
                    <font color="red">
                        <%=fw.Prc_user_username%>
                    </font>
                    <% if (fw.Prc_state == 1)
                       { %>
                    <%="未接收"%>
                    <% }
                       else if (fw.Prc_state == 2)
                       { %>
                    <% DateTime start = fw.Start_time; %>
                    <% DateTime finish = DateTime.Now; %>
                    <% TimeSpan result = finish - start; %>
                    <% int hour = 0; %>
                    <% if (result.Days > 0)
                       { %>
                    <% hour = (result.Days * 24); %>
                    <% } %>
                    <% hour += result.Hours; %>
                    [<font color="green"><%="办理中 已用时:" + (hour + "时" + result.Minutes + "分" + result.Seconds + "秒")%></font>]<br />
                    开始于:<%=fw.Start_time.ToString()%>
                    <% }
                       else if (fw.Prc_state == 3)
                       { %>
                    <% DateTime start = fw.Start_time; %>
                    <% DateTime finish = fw.Finish_time; %>
                    <% TimeSpan result = finish - start; %>
                    <% int hour = 0; %>
                    <% if (result.Days > 0)
                       { %>
                    <% hour = (result.Days * 24); %>
                    <% } %>
                    <% hour += result.Hours; %>
                    [<font color="green"><%="已办结 已用时:" + (hour + "时" + result.Minutes + "分" + result.Seconds + "秒")%></font>]<br />
                    开始于:<%=fw.Start_time.ToString()%>&nbsp;结束于:<%=fw.Finish_time.ToString()%>
                    <% } %>
                    <br />
                    <% }
                       } %>
                </font>
            </td>
        </tr>
        <% } %>
    </table>
    <% }
       else
       { %>
    <script type="text/javascript">
        alert("信息加载异常，请重试！");
    </script>
    <% }
       } %>
    <object id="WebBrowser" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0"
        width="0">
    </object>
</body>
</html>
